﻿// This software is the confidential and proprietary information of NetBay.
// Such confidential information should not be disclosed.
// NetBay copyright(c) 2012

namespace Rio.Workflow.Runtime.Actions
{
    /// <summary>
    /// Represents a generic action 
    /// </summary>
    public class GenericAction : WorkflowActionContext
    {
        #region Instance Methods

        /// <summary>
        /// Executes the specified WKF context.
        /// </summary>
        /// <param name="wkfContext">The WKF context.</param>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        public override Enums.ActionResult ActionExecuted(WorkflowContextBase wkfContext, ActionRequest request)
        {
            return Enums.ActionResult.Executed;
        }

        /// <summary>
        /// Actions the executed all.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        public override Enums.ActionResult ActionExecutedAll(WorkflowContextBase context, ActionRequest request)
        {
            return Enums.ActionResult.Executed;
        }

        /// <summary>
        /// Actions the executing.
        /// </summary>
        /// <param name="wkfContext">The WKF context.</param>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        public override Enums.ActionResult ActionExecuting(WorkflowContextBase wkfContext, ActionRequest request)
        {
            return Enums.ActionResult.Executed;
        }

        /// <summary>
        /// Actions the executing all.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        public override Enums.ActionResult ActionExecutingAll(WorkflowContextBase context, ActionRequest request)
        {
            return Enums.ActionResult.Executed;
        }

        #endregion
    }
}